#ifndef _RETRO_PLAYER_SPRITEMAP
#define _RETRO_PLAYER_SPRITEMAP

#include "player.graphic.h"
#include "player.fpscounter.h"

namespace Retro
{
  namespace Player
  {
    namespace Graphic
    {
      class SpriteMap : public IGraphic
      {
      private:
        const Data::SpriteMap*  mMap;
        Display::SpriteNode**   mNodes;

      public:
        INL const Data::SpriteMap* getMap() const
        {
          return mMap;
        }

        VOID  setMap(const Data::SpriteMap* iValue);

        SpriteMap();

        VOID init(Display::DisplayDevice* iDevice);
        VOID uninit(Display::DisplayDevice* iDevice);
        VOID render(
          Display::DisplayDevice* iDevice,
          INT x,
          INT y
          ) const;
      };
    }
  }
}

#endif
